package com.charles.seckillData.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Charles-H
 * 
 * 订单实体类
 */
public class SysOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    private String order_id;

    /**
     * 客户ID
     */
    private Long user_id;

    /**
     * 产品ID
     */
    private Long good_id;

    /**
     * 产品名称
     */
    private String good_title;

    /**
     * 产品原价
     */
    private BigDecimal price;

    /**
     * 产品秒杀价
     */
    private BigDecimal seckill_price;

    /**
     * 收货人名称
     */
    private String receiver_name;

    /**
     * 收货地址详细
     */
    private String receiver_addr;

    /**
     * 收货人电话号码
     */
    private String receiver_phone;

    /**
     * 支付方式(0:本地支付,1:第三方支付)
     */
    private String pay_way;

    /**
     * 订单状态(0:未支付,1:已支付,2:已过期)
     */
    private String status;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 支付时间
     */
    private Date pay_time;

    public SysOrder() {
    }

    public SysOrder(String order_id, Long user_id, Long good_id, String good_title, BigDecimal price, BigDecimal seckill_price, String receiver_name, String receiver_addr, String receiver_phone, String pay_way, String status, Date create_time, Date pay_time) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.good_id = good_id;
        this.good_title = good_title;
        this.price = price;
        this.seckill_price = seckill_price;
        this.receiver_name = receiver_name;
        this.receiver_addr = receiver_addr;
        this.receiver_phone = receiver_phone;
        this.pay_way = pay_way;
        this.status = status;
        this.create_time = create_time;
        this.pay_time = pay_time;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Long getGood_id() {
        return good_id;
    }

    public void setGood_id(Long good_id) {
        this.good_id = good_id;
    }

    public String getGood_title() {
        return good_title;
    }

    public void setGood_title(String good_title) {
        this.good_title = good_title;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSeckill_price() {
        return seckill_price;
    }

    public void setSeckill_price(BigDecimal seckill_price) {
        this.seckill_price = seckill_price;
    }

    public String getReceiver_name() {
        return receiver_name;
    }

    public void setReceiver_name(String receiver_name) {
        this.receiver_name = receiver_name;
    }

    public String getReceiver_addr() {
        return receiver_addr;
    }

    public void setReceiver_addr(String receiver_addr) {
        this.receiver_addr = receiver_addr;
    }

    public String getReceiver_phone() {
        return receiver_phone;
    }

    public void setReceiver_phone(String receiver_phone) {
        this.receiver_phone = receiver_phone;
    }

    public String getPay_way() {
        return pay_way;
    }

    public void setPay_way(String pay_way) {
        this.pay_way = pay_way;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getPay_time() {
        return pay_time;
    }

    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }

    @Override
    public String toString() {
        return "SysOrder{" +
                "order_id='" + order_id + '\'' +
                ", user_id=" + user_id +
                ", good_id=" + good_id +
                ", good_title='" + good_title + '\'' +
                ", price=" + price +
                ", seckill_price=" + seckill_price +
                ", receiver_name='" + receiver_name + '\'' +
                ", receiver_addr='" + receiver_addr + '\'' +
                ", receiver_phone='" + receiver_phone + '\'' +
                ", pay_way='" + pay_way + '\'' +
                ", status='" + status + '\'' +
                ", create_time=" + create_time +
                ", pay_time=" + pay_time +
                '}';
    }
}
